<?php /* Smarty version 2.6.26, created on 2016-09-05 12:02:37
         compiled from index.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../Common/head.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
		<div class="box">
			<a href="index.php?m=Admin&c=Stu&a=add&cid=<?php echo $_GET['cid']; ?>
" class="btn btn-info">添加学生</a>
			<table class="table table-hover">
				<tr>
					<th>学生编号</th>
					<th>学生姓名</th>
					<th>学生年龄</th>
					<th>学生性别</th>
					<th>操作</th>
				</tr>
				<?php $_from = ($this->_tpl_vars['data']); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
				<tr>
					<td><?php echo $this->_tpl_vars['v']['sid']; ?>
</td>
					<td><?php echo $this->_tpl_vars['v']['sname']; ?>
</td>
					<td><?php echo $this->_tpl_vars['v']['age']; ?>
</td>
					<td><?php echo $this->_tpl_vars['v']['sex']; ?>
</td>
					<td>
						<a href="index.php?m=Admin&c=Stu&a=edit&cid=<?php echo $_GET['cid']; ?>
&sid=<?php echo $this->_tpl_vars['v']['sid']; ?>
" class="btn btn-success btn-xs" >编辑学生</a>
						<button  type="button" class="btn btn-danger btn-xs">删除学生</button>
					</td>
				</tr>
				<?php endforeach; endif; unset($_from); ?>
			</table>

		</div>

	</body>

</html>